package com.xjtu.duansheli.service;

import com.xjtu.duansheli.entity.IdentifyImagesInfo;
import com.xjtu.duansheli.entity.ProductImagesInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 漩涡鸣人
 * @since 2020-10-24
 */
public interface ProductImagesInfoService extends IService<ProductImagesInfo> {
    public List<ProductImagesInfo> getAllProductImages(int current, int size);
    public ProductImagesInfo getProductImageByid(Long id);
    public List<ProductImagesInfo> getProductImageBypid(Long pid);
    public int addProductImages(MultipartFile[] files, Long pid) throws IOException;
    public int deleteProductImages(Long id);
    public int getTotal();
}
